const state = {
  moduleAState: {
    aaaa: '111',
    bbbb: 0
  }
}

const getters = {
  'get': (state) => state.moduleAState,
  'get_aaaa': (state) => state.moduleAState.aaaa
}

const actions = {
  'setModuleAState' ({commit, state, rootState}, item) {
    item.bbbb = 99999
    commit('setModuleAState', item)
  }
}

const mutations = {
  'setModuleAState' (state, item) {
    state.moduleAState = item
  }
}

export default {
  namespaced: true,
  state,
  getters,
  actions,
  mutations
}
